package com.van.entity.sys;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.util.Date;

/**
 * 上传文件
 */
@Data
@TableName(value = "sys_file")
public class UpFile {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    //上传文件名称
    private String name;
    //文件类型
    private String type;
    //ip
    private String ip;
    //服务器地址
    private String address;
    //url地址
    private String url;

    @TableField(value = "userId")
    private int userId;//上传人Id

    @TableField(value = "userName")
    private String userName;//上传人名称

    @TableField(value = "createTime")
    private Date createTime = new Date();//创建时间
    //备注
    private String remark;
    //逻辑删除
    @TableLogic
    private Integer deleted = 0;
}
